package com.wangsd.web.report.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wangsd.web.report.entity.Merchant;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator
 * @since 2019-10-15
 */
public interface MerchantService extends IService<Merchant> {

    IPage<Merchant> selectList(Integer pageNum, Integer pageSize, Merchant params, String code);

    void addOrUpdate(Merchant params);

    List<Map> selectAllByUserCode(String code);

    List<Merchant> selectByBusinessId(Long id);

    Merchant selectBySubMchId(String mchId);

    Merchant selectBySubMchIdAndNotId(String subMchId, Long id);
}
